package com.itheima.config;  
 2  
 3 import org.springframework.context.annotation.ComponentScan;  
 4 import org.springframework.context.annotation.Configuration;  
 5 import org.springframework.web.servlet.config.annotation.EnableWebMvc;  
 6  
 7 @Configuration  
 8 @ComponentScan("com.itheima.controller")  
 9 @EnableWebMvc  
 10 public class SpringMvcConfig {  
 11 } 